<script  lang="ts" setup>
defineProps(["label", "value"]);
</script>

<template>
  <div class="item">
    <span class="itemLable">{{ label }}</span>
    <span class="itemValue">
      {{ value }}
      <slot></slot>
    </span>
  </div>
</template>

<style scoped lang="scss">
.item {
  display: flex;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  margin: 0 12px;

  .itemLable {
    width: 100px;
    color: #333;
  }

  .itemValue {
    flex: 1;
    color: #666;
  }
}
</style>


